
    
<%@ Page Language="C#" MasterPageFile="~/CUAHSI.master" AutoEventWireup="true" CodeBehind="MetadataDataset.aspx.cs" Inherits="ODM2KMZ.MetadataDataset" Title="Site Metadata" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<%--  <script src="http://maps.google.com/maps?file=api&amp;v=2.109&amp;key=ABQIAAAAl_jo56tnGYLgFX1GyrPYrxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQ1ZojEh0Q3TfJl4GOR0ztOXb2vWg"
      type="text/javascript"></script>--%>
      <script src="http://maps.google.com/maps?file=api&amp;v=2.109&amp;key=ABQIAAAAl_jo56tnGYLgFX1GyrPYrxSVt2DxAC3lyshWUeAEeCQ9chv1MRSuKAVzEupCjoHQyJiArlkgRkW8BQ"
      type="text/javascript"></script>

      
    <script type="text/javascript">
    //<![CDATA[
    
    var to_htmls;
    var from_htmls;
    var html;
    var marker;
    
    function Load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        var lat = document.getElementById("ctl00_ContentPlaceHolder1_SiteLatitude").value;
        var lng = document.getElementById("ctl00_ContentPlaceHolder1_SiteLongitude").value;
        var sitename = document.getElementById("ctl00_ContentPlaceHolder1_SiteName").value
        var point = new GLatLng(lat, lng);
        map.setCenter(point, 9);
        map.setMapType(G_PHYSICAL_MAP);
        map.addControl(new GOverviewMapControl())
        marker = new GMarker(point);

        //--create the info tabs---
        //var infoTabs = [new GInfoWindowTab("Name", document.getElementById("ctl00_ContentPlaceHolder1_SiteName").value)];
        
        html = '<font size=+1><b>' + sitename + '</font></b><br>';
        
        // The info window version with the "to here" form open
        to_htmls = html + '<br>Directions: <b>To here</b> - <a href="javascript:fromhere()">From here</a>' +
           '<br>Start address:<form action="http://maps.google.com/maps" method="get" target="_blank">' +
           '<input type="text" SIZE=40 MAXLENGTH=40 name="saddr" id="saddr" value="" /><br>' +
           '<INPUT value="Get Directions" TYPE="SUBMIT">' +
           '<input type="hidden" name="daddr" value="' + point.lat() + ',' + point.lng() + 
                  // "(" + name + ")" + 
           '"/>';
        // The info window version with the "to here" form open
        from_htmls = html + '<br>Directions: <a href="javascript:tohere()">To here</a> - <b>From here</b>' +
           '<br>End address:<form action="http://maps.google.com/maps" method="get"" target="_blank">' +
           '<input type="text" SIZE=40 MAXLENGTH=40 name="daddr" id="daddr" value="" /><br>' +
           '<INPUT value="Get Directions" TYPE="SUBMIT">' +
           '<input type="hidden" name="saddr" value="' + point.lat() + ',' + point.lng() +
                  // "(" + name + ")" + 
           '"/>';
        // The inactive version of the direction info
        html = html + '<br>Directions: <a href="javascript:tohere()">To here</a> - <a href="javascript:fromhere()">From here</a>';

        
        //---add the click event for the marker---
        GEvent.addListener(marker, "click",function() {
            //---open the marker info tab---
            marker.openInfoWindowHtml(html);
        });
        //---add the marker---
        map.addOverlay(marker);
        
      }
      

    }
   
         // functions that open the directions forms
      function tohere() {
        marker.openInfoWindowHtml(to_htmls);
      }
      function fromhere() {
        marker.openInfoWindowHtml(from_htmls);
      }
    //]]>
    </script>

    &nbsp;&nbsp;
    <table style="width: 530px; height: 149px" class="clsSectionTable" id="TABLE1" cellpadding="3">

     <tr  class="clsSectionHeading">
            <td style="height: 17px;" colspan="2">
                Observations</td>
        </tr>
        <tr class="clsSectionText">
            <td style="height: 5px; width: 103px;">
                Start Date:</td>
            <td style="height: 5px" colspan="1">
                <asp:Label ID="lObservationsStartDate" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="height: 5px; width: 103px;">
                End Date:</td>
            <td style="height: 5px" colspan="1">
                <asp:Label ID="lObservationsEndDate" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="height: 5px; width: 103px;">
                Count:</td>
            <td style="height: 5px" colspan="1">
                <asp:Label ID="lObservationsCount" runat="server"></asp:Label></td>
        </tr>
        <tr  class="clsSectionHeading">
            <td style="height: 17px;" colspan="2">
                Variable</td>
        </tr>
        <tr class="clsSectionText">
            <td style="height: 5px; width: 103px;">
                Name:</td>
            <td style="height: 5px" colspan="1">
                <asp:Label ID="lVariableName" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Code:</td>
            <td colspan="1">
                <asp:Label ID="lVariableCode" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Units:</td>
            <td colspan="1">
                <asp:Label ID="lVariableUnits" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Sample Medium:</td>
            <td colspan="1">
                <asp:Label ID="lVariableSampleMedium" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Value Type</td>
            <td colspan="1">
                <asp:Label ID="lVariableValueType" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Is Regular</td>
            <td colspan="1">
                <asp:Label ID="lVariableIsRegular" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Time Support:</td>
            <td colspan="1">
                <asp:Label ID="lVariableTimeSupport" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Time Units:</td>
            <td colspan="1">
                <asp:Label ID="lVariableTimeUnits" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Data Type:</td>
            <td colspan="1">
                <asp:Label ID="lVariableDataType" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                General Catgory:</td>
            <td colspan="1">
                <asp:Label ID="lVariableGeneralCategory" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                No Data Value:</td>
            <td colspan="1">
                <asp:Label ID="lVariableNoDataValue" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionHeading">
            <td colspan="2">
                Method</td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px;; vertical-align: top;">
                Description:</td>
            <td style="height: 12px" colspan="1">
                <asp:Label ID="lMethodDescription" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Link:</td>
            <td style="height: 12px" colspan="1">
                <asp:Label ID="lMethodLink" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionHeading">
            <td colspan="2">
                Quality Control Level</td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Level:</td>
            <td align="center" style="text-align: left;" colspan="1">
                <asp:Label ID="lQualityControlLevel" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Description:</td>
            <td align="center" style="text-align: left;" colspan="1">
                <asp:Label ID="lQualityControlLevelDescription" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionHeading">
            <td colspan="2">
                Source</td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Organisation:</td>
            <td colspan="1">
                <asp:Label ID="lSourceOrganisation" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Description:</td>
            <td colspan="1">
                <asp:Label ID="lSourceDescription" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Link:</td>
            <td colspan="1">
                <asp:Label ID="lSourceLink" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Contact Name:</td>
            <td colspan="1">
                <asp:Label ID="lSourceContactName" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Phone:</td>
            <td colspan="1">
                <asp:Label ID="lSourcePhone" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                E-Mail:</td>
            <td colspan="1">
                <asp:Label ID="lSourceEmail" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Address:</td>
            <td colspan="1">
                <asp:Label ID="lSourceAddress" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                City:</td>
            <td colspan="1">
                <asp:Label ID="lSourceCity" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                State:</td>
            <td colspan="1">
                <asp:Label ID="lSourceState" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Post Code:</td>
            <td colspan="1">
                <asp:Label ID="lSourcePostCode" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                &nbsp;</td>
            <td colspan="1">
            </td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Topic Category:</td>
            <td colspan="1">
                <asp:Label ID="lSourceIsoMetadataTopicCategory" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Title:</td>
            <td colspan="1">
                <asp:Label ID="lSourceIsoMetadataTitle" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Abstract:</td>
            <td colspan="1">
                <asp:Label ID="lSourceIsoMetadataAbstract" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Profile Version:</td>
            <td colspan="1">
                <asp:Label ID="lSourceIsoMetadataProfileVersion" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Metadata Link:</td>
            <td colspan="1">
                <asp:Label ID="lSourceIsoMetadataMetadataLink" runat="server"></asp:Label></td>
        </tr>
                <tr class="clsSectionHeading">
        <td colspan="2">
            Site</td>
    
    </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Name:</td>
            <td style="vertical-align: top; text-align: left" colspan="1">
                <asp:Label ID="lSiteName" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Code:</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteCode" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                County (Region):</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteCounty" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                State:</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteState" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                &nbsp;</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
            </td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Latitude:</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteLatitude" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Longitude:</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteLongitude" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Spatial Reference:</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteSpatialReference" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Elevation (m):</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteElevation" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Vertical Datum:</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteVerticalDatum" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                &nbsp;</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
            </td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                X Local Projection</td>
            <td style="vertical-align: top; width: 90px; text-align: left">
                <asp:Label ID="lSiteXLocalProjection" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top; height: 21px;">
                Y Local Projection</td>
            <td style="vertical-align: top; width: 90px; text-align: left; height: 21px;">
                <asp:Label ID="lSiteYLocalProjection" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="width: 103px; vertical-align: top;">
                Projection:</td>
            <td style="vertical-align: top; text-align: left" colspan="1">
                <asp:Label ID="lSiteProjection" runat="server"></asp:Label></td>
        </tr>
        <tr class="clsSectionText">
            <td style="vertical-align: top; width: 103px">
                Comments:</td>
            <td colspan="1" style="vertical-align: top; text-align: left">
                <asp:Label ID="lSiteComments" runat="server"></asp:Label></td>
        </tr>
        <tr  class="clsSectionHeading">
            <td colspan="2" style="vertical-align: top;">
                Whereabouts</td>
        </tr>
        <tr class="clsSectionText">
            <td colspan="2" style="vertical-align: middle; text-align: left;">

<div id="map" style="width: 520px; height: 300px;"></div>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="SiteLatitude" runat="server" />
    <asp:HiddenField ID="SiteLongitude" runat="server" />
    <asp:HiddenField ID="SiteName" runat="server" />
    
</asp:Content>
